package com.repair.order.config;

import com.repair.order.utils.WorkerId;
import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chunyu
 * @since 2024/10/2,16:42
 */
@Configuration
public class WorkerIdConfig {

    @Bean
    public WorkerId workerId(RedissonClient redisson) {
        return new WorkerId(redisson);
    }
}
